package com.cjx.demo2.service.impl;

import com.cjx.common.api.CommonResult;
import com.cjx.demo1.feign.Demo1Feign;
import com.cjx.demo2.api.Demo2Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
*@Description demo2服务实现
*@Verson v1.0.0
*@Author cjunxian
*@Date
*/
@Service
public class Demo2ServiceImpl implements Demo2Service {

    /**
     * 引入demo1 feign客户端
     */
    @Autowired
    Demo1Feign demo1Feign;

    @Override
    public CommonResult feignFromDemo1() {
        return demo1Feign.getConfig();
    }
}
